package mutsumimod.cards.custom;

import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.monsters.AbstractMonster;
import com.megacrit.cardcrawl.powers.VulnerablePower;
import com.megacrit.cardcrawl.powers.WeakPower;
import mutsumimod.cards.BaseCard;
import mutsumimod.character.Mutsumi;
import mutsumimod.util.CardStats;

public class DigEye extends BaseCard {
    public static final String ID = makeID(DigEye.class.getSimpleName());
    public static final CardStats info = new CardStats(
            Mutsumi.Meta.CARD_COLOR,
            AbstractCard.CardType.SKILL,
            AbstractCard.CardRarity.COMMON,
            AbstractCard.CardTarget.ENEMY,
            0
    );

    public DigEye() {
        super(ID, info);
        setAttr(0,0,2);
        setAttrUpg(0,0,1);
    }

    @Override
    public void use(AbstractPlayer p, AbstractMonster m) {
        if(m.getIntentBaseDmg() >= 0){
            applyPowerMonster(new WeakPower(m,magicNumber,false),m);
        }else{
            applyPowerMonster(new VulnerablePower(m,magicNumber,false),m);
        }
    }

    @Override
    public AbstractCard makeCopy() { //Optional
        return new DigEye();
    }

}
